package com.example.zjx8969.myapplication

import android.app.Activity
import android.app.Application
import android.os.Bundle

/*
object AppLifeCycleInstance : Application.ActivityLifecycleCallbacks {
    var activeActivityCount = 0
    var currentActivity: Activity? = null
    override fun onActivityPaused(p0: Activity?) {
        currentActivity = null
    }

    override fun onActivityResumed(p0: Activity?) {
        currentActivity = p0
    }

    override fun onActivityStarted(p0: Activity?) {
    }

    override fun onActivityDestroyed(p0: Activity?) {
        activeActivityCount--
    }

    override fun onActivitySaveInstanceState(p0: Activity?, p1: Bundle?) {
    }

    override fun onActivityStopped(p0: Activity?) {
    }

    override fun onActivityCreated(p0: Activity?, p1: Bundle?) {
        activeActivityCount++
    }
}*/
